import './assets/main.css'
import { createApp } from 'vue';
import { createRouter, createWebHistory } from 'vue-router';
import App from './App.vue';
// 导入和配置路由组件
import CreateTeam from './components/CreateTeam.vue';
import Register from './components/Register.vue';
import Login from './components/Login.vue';
import JoinTeam from './components/JoinTeam.vue';
import Application from './components/Application.vue';
import HomePage from './components/HomePage.vue';
import Account from './components/Account.vue';



const router = createRouter({
  history: createWebHistory(),
  routes: [
    // 定义路由
    { path: '/register', component: Register },
    { path: '/create_team', component: CreateTeam },
    { path: '/join_team', component: JoinTeam },
    { path: '/', component: Login },
    { path: '/application', component: Application },
    { path: '/home', component: HomePage },
    { path: '/account', component: Account },
  ],
});

const app = createApp(App);
app.use(router);
app.mount('#app');